<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>回访日志</title>
<script src="../js/global.js"></script>
<script type="text/javascript">
$(function() {
	init();
	
})
function init(){
	$("#HiufangTab").datagrid({
		url : 'selectYesHiuFang',
		method : 'post',
		pagination : true,
		singleSelect : true
	})
}
function formatterZName(value, row, index) {
	 return value.loginName;
} 
	function formatterXName(value, row, index) {
		 if(value!=null){
			 return value.name;
			}
		 
	}
	function formattercaozuo(value, row, index) {
		return "<a href='javascript:void(0)' onclick='chakan(" + index
				+ ")'>查看</a>";
	}	  
	/* 查看 */
	  function chakan(index){
			var data = $("#HiufangTab").datagrid("getData");
			var row = data.rows[index];
			$("#lookHuifangFrm").form("load", row);
			$("#lookHuifangDialog").window("setTitle", "正在查看该跟被回访者的信息");
			$("#lookHuifangDialog").dialog("open");
	  }
		function lookClose(){
			$("#lookHuifangDialog").dialog("close");
		}
</script>
</head>

<body>
<!-- 显示回访者信息 -->
	<table id="HiufangTab" class="easyui-datagrid">
		<thead>
			<tr>
				<th data-options="field:'id',title:'回访者编号'"></th>
				<th data-options="field:'student',title:'姓名',formatter:formatterXName"></th>
				<!-- <th data-options="field:'users',title:'咨询师姓名',formatter:formatterZName"></th> -->
				<th data-options="field:'users',title:'回访者',formatter:formatterZName"></th>
				<th data-options="field:'followTime',title:'回访时间'"></th>
				<th data-options="field:'followType',title:'回访方式'"></th>
				<th data-options="field:'content',title:'回访内容'"></th>
				<!-- <th data-options="field:'nextFollowTime',title:'下一次跟踪时间'"></th> -->
				<th
					data-options="field:'followState',title:'回访情况'"></th>
				  <th
					data-options="field:'caozuo',title:'操作',formatter:formattercaozuo"></th> 
		</thead>
	</table>
	
	<!-- 回访查看 -->

<div id="lookHuifangDialog" class="easyui-dialog"
		data-options="modal:true,closed:true">
		<form id="lookHuifangFrm" class="easyui-form">
			<table>
				<tr>
					<td><label for="name">回访者编号:</label></td>
					<td><input disabled="disabled" class="easyui-validatebox"
						type="text" id="跟踪者Id" name="id" data-options="required:true" /></td>
				</tr>
				<!-- <tr>
					<td><label for="name">学生姓名:</label></td>
					<td><input disabled="disabled" class="easyui-validatebox"
						type="text" id="studentName" name="studentName"
						data-options="required:true" /></td>
				</tr> -->

				<tr>
					<td><label for="name">回访时间:</label></td>
					<td><input class="easyui-validatebox" type="text"
						id="followTime" name="followTime"
						data-options="required:true" disabled="disabled"/></td>
				</tr>
				<tr>
					<td><label for="name">回访内容:</label></td>
					<td><input class="easyui-validatebox" type="text"
						id="content" name="content" data-options="required:true" disabled="disabled"/></td>
				</tr>
				<tr>
					<td><label for="name">回访方式:</label></td>
					<td><select id="followType" name="followType" class="easyui-combobox" disabled="disabled">
							<option value="跟踪">跟踪</option>
							<option value="网络">网络</option>
					</select></td>
				</tr>
				<tr>
					<td><label for="name">回访状态:</label></td>
					<td><input class="easyui-validatebox" type="text"
						id="followState" name="followState" data-options="required:true" disabled="disabled"/></td>
				</tr>
				<tr>
					
					<td><a href="javascript:void(0)" class="easyui-linkbutton"
						onclick="lookClose()">取消</a></td>
				</tr>
			</table>
		</form>

	</div>
	
	
</body>
</html>